package com.freewater.helloworld.query;

import com.freewater.helloworld.entity.Book;
import org.hibernate.annotations.processing.HQL;
import org.hibernate.query.Page;

import java.util.List;

public interface Queries {

    @HQL("where title like :title order by title")
    List<Book> findBooksByTitleWithPagination(String title, Page page);

}
